//
//  main.m
//  OC5_数组课后作业网上答案
//
//  Created by dllo on 15/10/28.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AddressBook.h"
#import "AddressContact.h"

int main(int argc, const char * argv[]) {

    AddressBook * book = [[AddressBook alloc] init];
    AddressContact * p1 = [[AddressContact alloc] initWithName:@"小明" sex:@"男" phoneNum: @"12345566" address:@"龙东大道" groupName:@"同学"];
    [book addPerson:p1];
    [book showAddressBook];
    //    [book getPersonWithGroupName:@"同学"];
    [book removePersonWithGroupName:@"同学"];
    [book showAddressBook];

    
    
    
    return 0;
}
